/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grex.WekaModels;

import grex.WekaModels.WekaPredictiveModel;
import grex.Data.ArffTableModel;
import weka.classifiers.Classifier;
import weka.classifiers.meta.Bagging;
import weka.classifiers.trees.J48;
import weka.classifiers.trees.M5P;
import weka.core.Instance;
import weka.core.Instances;

/**
 *
 * @author RIK
 */
public class GrexJ48Bag extends WekaPredictiveModel {
    public Bagging bag;
    private Classifier[] baseModels;
    public GrexJ48Bag(ArffTableModel data){
        super(data, new Bagging());
        bag = (Bagging) model;
        baseModels = new Classifier[20];
        for(int i=0;i<baseModels.length;i++){
            J48 j48 = new J48();
            baseModels[i]=j48;
        }
    }
    
    private GrexJ48Bag(){        
    }
    
    public double getNrOfNodes() {
        return baseModels.length;
    }

    public String getName() {
        return "J48Bag";
    }
    /*public GrexJ48Bag clone(){
        GrexJ48Bag c = new GrexJ48Bag();
        c.bag=bag;
        c.baseModels = baseModels;
        c.currentFold
        
        c.initFold(currentFold);
        c.train();
        
        return c;
    }*/
    
}
